from playwright.sync_api import sync_playwright
import pytest

@pytest.fixture(scope="function")
def context_chrome():
    p = sync_playwright().start()
    browser = p.chromium.launch(headless=False)
    context = browser.new_context()
    yield context
    browser.close()
    p.stop()